﻿class Food extends Unit
{
	//Food is a special type of Unit which stores and returns a sound and can be eaten
	
	private var sound:String;
	private var eaten:Boolean;
	
	function Food()
	{
		super(Unit);
		//trace("new food created");//debug
		eaten = false;
	}
	public function get object_sound():String
	{
		return sound;
	}
	public function set is_eaten(new_condition:Boolean):Void
	{
		eaten = new_condition;
		//trace("food eaten"); //debug
	}
}